﻿using Engine;
using Engine.Graphics;
using Game;

namespace Mekiasm
{
    public class Oxygen : ItemFlat,Interface.IAnimateBlockTexture
    {
        public static int Index;

        public Oxygen() : base("氧气",null)
        {
            
        }

        public string AnimateTextureName => "oxygen_still";

        public Matrix AnimateTextureTranform => Matrix.Identity;

        public Color AnimateColorTransForm => Color.White;

        public override void Initilize()
        {
            texture2D = FluidSystem.GetFluidRenderTexture(blockValue);
        }

        public override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
        {
            color = AnimateColorTransForm;
            base.DrawBlock(primitivesRenderer, value, color, size, ref matrix, environmentData);
        }

        public override string GetCategory(int value)
        {
            return MekiasmInit.categories_terrain;
        }

    }
}
